BindHelp
Syntax
The leafnames of the textfiles describing chapters must begin with a pair of digits. These digits must make up consecutive numbers, and they indicate the ordering of the chapters. Thus
01Starter 02Main 03Puddingwill produce three chapters: Starter, Main, Pudding - in that order. So 99 chapters is the maximum.
Chapter files consist of sections. A section has the form
!section {body}or
!section heading {body}where the arguments are text. If there is a heading it is automatically listed as a link on the contents page. Sections cannot be nested. They may contain html tags.
An image may be placed in a section with an expression
!img imagefollowed by a space or newline, where image is the pathname of a file of type gif, jpeg or png relative to the target directory. Note that RISC OS, not Unix, filename conventions apply. The width and height attributes of the image are calculated automatically by Bind. You must put the images into the target directory.
A link may be placed in a section with an expression
!link url { link_text }where the first argument is the url and the second is the text of the link. The link_text can contain images.
Code can be displayed within a section in preformatted form using the forms:
!code {code_text} !code @filenameCode sections cannot be nested, nor may they contain images or links. The filename is relative to the source directory. The contents of the file will have certain characters converted to html entities.
Within sections text can be cited by sandwiching it between double underscores:
special __emphasis__